﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OPLWeb.Models
{
    public class HomeWrapper
    {
        public List<NewsUpdate> News { get; set; }
        public List<NewsUpdate> Updates { get; set; }
        public List<Fixture> UpcomingFixtures { get; set; }
        public List<Team> LeagueTable { get; set; }
        public List<Fixture> MatchSummary { get; set; }
    }

    public class FixtureWrapper
    {
        public Fixture NextGame { get; set; }
        public List<Fixture> FullFixture { get; set; }
        public List<GroupedFixture> GroupedFixture { get; set; }
    }

    public class GroupedFixture
    {
        public int WeekNumber { get; set; }
        public List<Fixture> Fixtures { get; set; }
    }

    public class MatchSummary
    {
        public ResultTeam Team1 { get; set; }
        public ResultTeam Team2 { get; set; }
        public string Result { get; set; }
        public Fixture ThisFixture { get; set; }
    }

    public class ResultTeam
    {
        public string TeamName { get; set; }
        public List<Player> Players { get; set; }
        public long FixtureId { get; set; }
        public List<PlayerTeamSeason> Batting { get; set; }
        public List<PlayerTeamSeason> Bowling { get; set; }
    }

    public class TeamDashboard
    {
        public List<Fixture> TeamMatches { get; set; }
        public List<Player> TeamPlayer { get; set; }
        public string TeamName { get; set; }
    }

    public class ChatWrapper
    {
        public string UserId { get; set; }
        public bool IsBroadCasting { get; set; }
        public string Message { get; set; }
        public string PrivateUserId { get; set; }
        public List<string> Users { get; set; }
        public List<ChatWrapper> ChatHistory { get; set; }
        public DateTime DateTime { get; set; }
    }
}